package com.briup.day11.abBean;

public class Cat extends Animal {
    private int meekValue;
    public Cat(String color, int age,int meekValue) {
        super(color, age);
        this.meekValue=meekValue;
    }

    public Cat() {

    }

    @Override
    public void  eat() {
        System.out.println("猫喜欢吃鱼");
    }
    @Override
    public void sleep() {
        System.out.println("猫喜欢躺着睡");
    }

    @Override
    public String toString() {
        String msg=super.toString();
        msg="猫的温顺度"+this.meekValue+" "+msg;
        return msg;
    }
}
